package com.lk.wz.config;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Properties;

public class dbConfig {
	public Properties getDBProperties(){
		Properties props=new Properties();
		try {
			InputStream in=new FileInputStream("F:\\我的JAVA\\workspace\\com.lk.wz.forum\\db.properties");
			props.load(in);
//		props.load(this.getClass().getResourceAsStream("db.properties"));
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return props;
	}
	
	public static void main(String[] args){
		dbConfig config=new dbConfig();
		config.getDBProperties();
	}

}
